from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static

from app.views.amazon_auth_views import AmazonAuthView

urlpatterns = [  
    # path('import_excel/', import_excel, name='import_excel'),
    path('amazon/authorize/', AmazonAuthView.as_view(), name='amazon_authorize'),
    path('amazon/callback/', AmazonAuthView.as_view(), name='amazon_callback'),
    path('amazon/refresh/<int:store_id>/', AmazonAuthView.as_view(), name='amazon_refresh_token'),
    path('amazon/status/<int:store_id>/', AmazonAuthView.as_view(), name='amazon_auth_status'),
]

# 提供媒体文件服务，不再限制为DEBUG模式
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) 